// EMQ  客户端请求
import http2 from "./http2";

// 获取数据列表
const getlist = (_limit, _page, _, clientid) => {
    return http2.get('v4/clients', {
        params: {
            _limit,
            _page,
            clientid

        }
    })
}

// 获取某条数据详细信息
const getDetailInfo = (clientid) => {
    return http2.get('v4/clients/' + clientid)
}

// 获取该数据订阅信息
const getBuyInfo = (clientid) => {
    return http2.get('v4/subscriptions/' + clientid)
}
export default {
    getlist,
    getDetailInfo,
    getBuyInfo
}